/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 退换货Entity
 * @author yinhao
 * @version 2017-12-06
 */
public class ReturnsGoods extends DataEntity<ReturnsGoods> {
	
	private static final long serialVersionUID = 1L;
	private String returnCode;		// return_code
	private String orderCode;		// order_code
	private String returnUserId;		// 退换货发起方:1门店，2用户
	private String type;		// 退换货类型：1退货，2换货
	private String photo;		// photo
	private String reason;		// reason
	private String result;		// 处理结果，多条结果分号分隔
	private String userId;
	
	//
	private Date startTime;
	private Date endTime;
	private String userType;
	private String userName;
	private String userCompany;
	private String storeType;
	private String storeCnName;
	private String ordersId;
	private String buyStoreCode;
	private String sysUserId;
	private String returnGoodsDetailNum;
	private String returnGoodsDetailMoney;
	private String ordersType;
	
	
	public ReturnsGoods() {
		super();
	}

	public ReturnsGoods(String id){
		super(id);
	}

	@Length(min=0, max=50, message="return_code长度必须介于 0 和 50 之间")
	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}
	
	@Length(min=0, max=50, message="order_code长度必须介于 0 和 50 之间")
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	
	@Length(min=0, max=11, message="退换货发起方:1门店，2用户长度必须介于 0 和 11 之间")
	public String getReturnUserId() {
		return returnUserId;
	}

	public void setReturnUserId(String returnUserId) {
		this.returnUserId = returnUserId;
	}
	
	@Length(min=0, max=1, message="退换货类型：1退货，2换货长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=500, message="photo长度必须介于 0 和 500 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	@Length(min=0, max=500, message="reason长度必须介于 0 和 500 之间")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	
	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserCompany() {
		return userCompany;
	}

	public void setUserCompany(String userCompany) {
		this.userCompany = userCompany;
	}

	public String getStoreType() {
		return storeType;
	}

	public void setStoreType(String storeType) {
		this.storeType = storeType;
	}

	public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}

	public String getBuyStoreCode() {
		return buyStoreCode;
	}

	public void setBuyStoreCode(String buyStoreCode) {
		this.buyStoreCode = buyStoreCode;
	}

	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getStoreCnName() {
		return storeCnName;
	}

	public void setStoreCnName(String storeCnName) {
		this.storeCnName = storeCnName;
	}

	public String getReturnGoodsDetailNum() {
		return returnGoodsDetailNum;
	}

	public void setReturnGoodsDetailNum(String returnGoodsDetailNum) {
		this.returnGoodsDetailNum = returnGoodsDetailNum;
	}

	public String getReturnGoodsDetailMoney() {
		return returnGoodsDetailMoney;
	}

	public void setReturnGoodsDetailMoney(String returnGoodsDetailMoney) {
		this.returnGoodsDetailMoney = returnGoodsDetailMoney;
	}

	public String getOrdersType() {
		return ordersType;
	}

	public void setOrdersType(String ordersType) {
		this.ordersType = ordersType;
	}
	
}